<?php
/**
 * @uage:
 * php -f runtest.php
 *
 */
require_once("index.php");
require_once("sampletest.php");
require_once 'Framework/TestSuite.php';
require_once 'Framework/TestResult.php';
$tSuite = new PHPUnit_Framework_TestSuite();          //creation of  the test suite object 创建测试套件对象
$tSuite->addtest(new SampleTest("testSum"));      //Add inidividual tests
$res = new PHPUnit_Framework_TestResult();          //Creation of the Result 建立一个测试结果类
//PHPUnit_TextUI_TestRunner::run($suite);
$tSuite->run($res);                          //Run of the test 运行测试
//$res->report();                                  //Print results  输出测试结果。
var_dump($res);
